package com.RedRiver.hospitalsystem.personal_service.common;

import com.RedRiver.hospitalsystem.result.ResultCode;

public enum Personal_serviceResultCode implements ResultCode {

    ACCOUNT_USERNAME_EXISTED(30001, "用户名已存在"),
    ACCOUNT_TYPE_NOTEXISTED(30002, "工作人员类型不存在"),
    ACCOUNT_ADDITION_FAILD(30003, "工作人员新增失败"),
    ACCOUNT_DELETE_FAILD(30004,"用户信息删除失败"),
    ACCOUNT_UPDATE_FAILD(30005,"用户信息更新失败"),
    ACCOUNT_USER_NOEXISTED(30006,"用户不存在"),
    DOCTOR_NOT_EXISTED(30007,"该医生不存在"),
    DOCTOR_CARD_EXISTED(30008, "该医生已存在"),
    DOCTOR_ADDITION_FAILD(30009, "工作人员新增失败"),
    DOCTOR_CARD_REPEAT(30010,"新增失败，身份证已存在"),
    DOCTOR_CHANGE_ERROR(30011,"医生信息修改失败"),
    DEPARTMENT_NAME_ERROR(30012,"该部门已存在"),
    DEPARTMENT_NOT_ERROR(30019,"该部门不存在，请创建后再尝试"),
    DEPARTMENT_ADDRESS_STATUS(30013,"该地址已存在部门，并且还在营业"),
    DEPARTMENT_CREATE_ERROR(30014,"创建部门失败"),
    DEPARTMENT_UPDAYE_ERROR(30015,"修改部门信息失败"),
    DEPARTMENT_DELETE_ERROR(30016,"删除部门信息失败"),
    DOCTOR_DELETE_ERROR(30016,"删除医生信息失败"),
    SUBJECT_ADD_ERROR(30017,"新增科室失败"),
    SUBJECT_NOT_EXISTED(30018,"该科室不存在"),
    SUBJECT_NAME_EXISTED(30020,"该科室名已存在，请重新修改名字"),
    SUBJECT_ADDRESS_EXISTED(30021,"该地址已存在科室"),
    SUBJECT_UPDATE_ERROR(30022,"科室修改失败"),
    WORKER_CARD_EXISTED(30023,"该身份证已存在"),
    WORKER_EXISTED(30024,"该工作人员已存在"),
    WORKER_ADD_ERROR(30025,"工作人员新增失败"),
    WORKER_NOT_EXISTED(30026,"该工作人员不存在"),
    WORKER_UPDATE_ERROR(30027,"修改失败"),
    WORKER_DELETE_ERROR(30028,"删除失败"),
    SCHEDULE_ERROR(30029,"参数错误"),
    SCHEDULE_STATE_CLOSE(30030,"该部门已关闭"),
    SCHEDULE_DOCTORISNOTDEPARTMENT(30031,"该医生不属于该部门，请重试"),
    SCHEDULE_DOCTORADD_ERROR(30032,"新增医生排班失败"),
    SCHEDULE_NOT_EXISTED(30033,"该排班不存在"),
    SCHEDULE_UPDATE_NOT(30034,"排班更新失败"),
    SCHEDULE_DELETE_ERROR(30035,"排班删除失败"),
    SCHEDULE_TIME_EXISTED(30036,"该时段已排班,请选择修改排班"),
    ACCOUNT_PASSWORD_ERROR(30037,"密码错误"),
    ACCOUNT_ACCOUNT_NULL(30038,"账户或密码不能为空"),
    ACCOUNT_USERNAME_ERROR(30039,"该用户不存在"),
    LOCALDATETIME_ERROR(30040,"日期参数错误")

    ;

    private int code;
    private String message;

    private Personal_serviceResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
